<!DOCTYPE html>
<style>
.container {
    contain: paint;
}
.fixed {
    position: fixed;
}
</style>
<div class="container" id="test">
    <div class="fixed">Test passes if no crash.</div>
</div>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
var test = document.querySelector("#test");
test.style.display = "inline"
</script>
